﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctlFilterItemEditor.ascx.cs" Inherits="Ctl_ctlFilterItemEditor" %>
<%@ Register   Namespace="Grishko.UI"    TagPrefix="uc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate >
<div >

<table style="width:100%;" cellpadding ="0" cellspacing="0">
    <tr style ="vertical-align :top ">
        <td style="width:70px; text-align :left" >
            <asp:DropDownList Width ="95%" ID="cmbWordOperation" runat="server">
            </asp:DropDownList>            
        </td>
        <td style="width:250px; text-align :left ">
            <asp:DropDownList Width ="95%" ID="cmbFields" runat="server" 
                AutoPostBack="True" onselectedindexchanged="cmbFields_SelectedIndexChanged">
            </asp:DropDownList>
         </td>
        <td style="width:250px; text-align :left ">
            <asp:DropDownList Width ="95%" ID="cmbFieldOperations" runat="server" 
                AutoPostBack="True" 
                onselectedindexchanged="cmbFieldOperations_SelectedIndexChanged">
            </asp:DropDownList>
         </td>         
         <td>
            &nbsp
         </td>
         <td style="width:50%; text-align :left ">            
             <asp:MultiView ID="MultiView1" runat="server">
                 <asp:View ID="mvStringValue" runat="server">
                    <table style="width:100%" style="width:100%" cellspacing ="0" cellspacing ="0">
                    <tr>
                        <td>
                            <%--строчное значение--%>
                            <asp:TextBox Width ="100%" CssClass ="TextBox" ID="txtStringValue" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    </table>
                 </asp:View>
                 <asp:View ID="mvDataValue" runat="server">
                    <table style="width:100%" cellspacing ="0" cellspacing ="0">
                    <tr>
                        <td  style ="width:100px">
                        <%--дата--%>
                        <asp:TextBox Width ="100px" CssClass ="TextBox" ID="txtDataValue" runat="server"></asp:TextBox>                                                                                    
                        <cc1:CalendarExtender ID="txtDataValueExt" runat="server" 
                                TargetControlID="txtDataValue" Format ="dd.MM.yyyy" PopupButtonID="btn_DataValue" >
                        </cc1:CalendarExtender>
                            
                        </td>
                        <td style ="text-align :left ">
                            <asp:ImageButton ID="btn_DataValue" ImageUrl ="~/images/icon-calendar.gif" runat="server" />    
                        </td>                        
                    </tr>
                    </table>   
                    <cc1:MaskedEditExtender ID="me_txtDateValue"
                    Mask="99/99/9999"
                    runat="server"
                    AutoComplete ="true"                     
                    MessageValidatorTip="true" 
                    OnFocusCssClass="MaskedEditFocus" 
                    OnInvalidCssClass="MaskedEditError"
                    MaskType="Date"  
                    InputDirection="LeftToRight"    
                    AcceptNegative="Left"                     
                    ErrorTooltipEnabled="True"                     
                    TargetControlID="txtDataValue"
                    ClearTextOnInvalid ="false" 
                >                     
                </cc1:MaskedEditExtender>                 
                 </asp:View>
                 <asp:View ID="mvDataBetweenValue" runat="server">
                    <table style="width:100%" cellspacing ="0" cellspacing ="0">
                    <tr>
                        <td  style ="width:100px">
                            <asp:TextBox Width ="100px" CssClass ="TextBox" ID="txtDataBetweenValue_Start" runat="server"></asp:TextBox>                                                        
                            
                        </td>
                        <td style ="text-align :left;width :25px ">
                            <asp:ImageButton ID="btnDataBetweenValue_Start" ImageUrl ="~/images/icon-calendar.gif" runat="server" />    
                            <cc1:CalendarExtender ID="CalendarExtender1" runat="server" 
                                TargetControlID="txtDataBetweenValue_Start" Format ="dd.MM.yyyy" PopupButtonID="btnDataBetweenValue_Start" >
                        </cc1:CalendarExtender>
                            <cc1:MaskedEditExtender ID="MaskedEditExtender1"
                                Mask="99/99/9999"
                                runat="server"
                                AutoComplete ="true"                     
                                MessageValidatorTip="true" 
                                OnFocusCssClass="MaskedEditFocus" 
                                OnInvalidCssClass="MaskedEditError"
                                MaskType="Date"  
                                InputDirection="LeftToRight"    
                                AcceptNegative="Left"                     
                                ErrorTooltipEnabled="True"                     
                                TargetControlID="txtDataBetweenValue_Start"
                                ClearTextOnInvalid ="false" >                     
                </cc1:MaskedEditExtender>
                        
                        </td>
                        <td style ="text-align :center;width :25px ">
                             -
                        </td>
                        <td  style ="width:100px">
                            <asp:TextBox Width ="100px" CssClass ="TextBox" ID="txtDataBetweenValue_End" runat="server"></asp:TextBox>                                                        
                            <cc1:CalendarExtender ID="CalendarExtender2" runat="server" 
                                TargetControlID="txtDataBetweenValue_End" Format ="dd.MM.yyyy" PopupButtonID="btnDataBetweenValue_End" >
                        </cc1:CalendarExtender>
                            <cc1:MaskedEditExtender ID="MaskedEditExtender2"
                                Mask="99/99/9999"
                                runat="server"
                                AutoComplete ="true"                     
                                MessageValidatorTip="true" 
                                OnFocusCssClass="MaskedEditFocus" 
                                OnInvalidCssClass="MaskedEditError"
                                MaskType="Date"  
                                InputDirection="LeftToRight"    
                                AcceptNegative="Left"                     
                                ErrorTooltipEnabled="True"                     
                                TargetControlID="txtDataBetweenValue_End"
                                ClearTextOnInvalid ="false" >                     
                </cc1:MaskedEditExtender>
                            
                        </td>
                        <td style ="text-align :left ">
                            <asp:ImageButton ID="btnDataBetweenValue_End" ImageUrl ="~/images/icon-calendar.gif" runat="server" />    
                        </td>
                        
                    </tr>
                    </table>
                 </asp:View>
                 <asp:View ID="mvNumber" runat="server">
                    <table style="width:100%" style="width:100%" cellspacing ="0" cellspacing ="0">
                    <tr>
                        <td>
                            <asp:TextBox Width ="99%" CssClass ="TextBox" ID="txtNumber" runat="server"></asp:TextBox>
                            <cc1:MaskedEditExtender ID="MaskedEditExtender53"                            
                            runat="server"
                            AutoComplete ="true"                     
                            MessageValidatorTip="true" 
                            OnFocusCssClass="MaskedEditFocus" 
                            OnInvalidCssClass="MaskedEditError"
                            Mask="999999"                            
                            InputDirection="LeftToRight"    
                            AcceptNegative="Left"                     
                            ErrorTooltipEnabled="True"                     
                            TargetControlID="txtNumber"
                            ClearTextOnInvalid ="false">                     
                            </cc1:MaskedEditExtender>
                        </td>
                    </tr>
                    </table>
                 </asp:View>
                 <asp:View ID="mvNumerBetween" runat="server">
                    <table style="width:100%" cellspacing ="0" cellspacing ="0">
                    <tr>
                        <td  style ="width:50%">
                            <asp:TextBox Width ="99%" CssClass ="TextBox" ID="txtNumberStart" runat="server"></asp:TextBox>                                                        
                               <cc1:MaskedEditExtender ID="MaskedEditExtender3"                            
                            runat="server"
                            AutoComplete ="true"                     
                            MessageValidatorTip="true" 
                            OnFocusCssClass="MaskedEditFocus" 
                            OnInvalidCssClass="MaskedEditError"
                            Mask="99999"                            
                            InputDirection="LeftToRight"    
                            AcceptNegative="Left"                     
                            ErrorTooltipEnabled="True"                     
                            TargetControlID="txtNumberStart"
                            ClearTextOnInvalid ="false" 
                >                     
                </cc1:MaskedEditExtender>
                            
                        </td>        
                        <td style ="text-align :center ;width :25px ">
                            -
                        </td>                
                        <td  style ="width:50%">
                            <asp:TextBox Width ="99%" CssClass ="TextBox" ID="txtNumberEnd" runat="server"></asp:TextBox>                                                                                    
                            <cc1:MaskedEditExtender ID="MaskedEditExtender4"                            
                            runat="server"
                            AutoComplete ="true"                     
                            MessageValidatorTip="true" 
                            OnFocusCssClass="MaskedEditFocus" 
                            OnInvalidCssClass="MaskedEditError"
                            Mask="99999"                            
                            InputDirection="LeftToRight"    
                            AcceptNegative="Left"                     
                            ErrorTooltipEnabled="True"                     
                            TargetControlID="txtNumberEnd"
                            ClearTextOnInvalid ="false" 
                >                     
                </cc1:MaskedEditExtender>
                        </td>                        
                    </tr>
                    </table>
                 </asp:View>
                 <asp:View ID="mvBool" runat="server">
                    <table style="width:100%" style="width:100%" cellspacing ="0" cellspacing ="0">
                    <tr>
                        <td>
                            <asp:RadioButton GroupName ="grp" ID="chTrue" Checked ="true"  Text ="Да" runat="server" />
                            <asp:RadioButton GroupName ="grp" ID="chFalse" runat="server" Text ="Нет"/>
                        </td>
                    </tr>
                    </table>
                 </asp:View>
                 
                 <asp:View ID="TreeControl" runat="server">
                 <table style="width:100%" style="width:100%" cellspacing ="0" cellspacing ="0">
                    <tr>
                        <td>
                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                        <ContentTemplate >
                        <uc2:TreeDictionaryControl_Rb  ID ="tv_TreeType" runat ="server" EnableViewState="False" 
                            TreeIsCollapse="True" CollapseCssDown="CollapseCssDown" 
                            CollapseCssUp="CollapseCssUp"    
                            SelectedMode="MultiSelect"  >
                            </uc2:TreeDictionaryControl_Rb >                                 
                         </ContentTemplate>
                        </asp:UpdatePanel>             
                        </td>
                    </tr>
                    </table>
                 
                 </asp:View> 
             </asp:MultiView>
         </td>         
        <td>
            &nbsp   
        </td>
    </tr>
</table>
</div>
</ContentTemplate>
</asp:UpdatePanel>

